using ExpressesClass.BestApi.Base;
using ExpressesClass.BestApi.kdWaybillDeliveryCreateNotifyRsp;
using ExpressesClass.BestApi.Utils;
using System;
using System.Collections.Generic;

namespace ExpressesClass.BestApi.kdWaybillDeliveryCreateNotifyReq
{
    public class KdWaybillDeliveryCreateNotifyReq : BaseRequest
    {
		public Auth auth { get; set; }
		public List<CreatePrintFeedbackList> createPrintFeedbackList { get; set; }
       
		public override String obtainServiceType()
        {
            return "KD_WAYBILL_DELIVERY_CREATE_NOTIFY";

        }

		public override BaseResponse makeResponse(string rsp, string format)
        {
           if ("XML".Equals(format, StringComparison.InvariantCultureIgnoreCase)) {
               return XmlUtils.xmlToObj(rsp,typeof(KdWaybillDeliveryCreateNotifyRsp)) as KdWaybillDeliveryCreateNotifyRsp;
           }
           return JsonParser.jsonToObj<KdWaybillDeliveryCreateNotifyRsp>(rsp);
        }


    }
}